#ifndef __BSP_LED_H__
#define __BSP_LED_H__

#include "gd32f4xx.h"
#include "gd32f4xx_gpio.h"
#include "gd32f4xx_rcu.h"
#define LED_SW	0
#define LED1	1
#define LED2	2
#define LED3	3
#define LED4	4
#define LED5	5
#define LED6	6
#define LED7	7
#define LED8	8

void bsp_leds_init();

void bsp_led_turn_on(uint8_t led_index);

void bsp_led_turn_off(uint8_t led_index);
void GPIO_config(rcu_periph_enum periph,uint32_t GPIOx, uint32_t GPIO_PIN_x);


#endif